package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author code-generate
 * @date 2021-08-06
 */
@Data
@DbTable(tableName = "t_person")
public class Person extends BaseEntity {
    /**
     * 姓名
     */
    @DbTableField(columnName = "c_name", dbType = DbTypeEnum.VARCHAR)
    public String name;

    /**
     * 社保号
     */
    @DbTableField(columnName = "c_security", dbType = DbTypeEnum.VARCHAR)
    public String security;

    /**
     * -1：停用，0：闲置，1：审核中，2：在职，3：离职
     */
    @DbTableField(columnName = "c_work_state", dbType = DbTypeEnum.INTEGER)
    public Integer workState;

    /**
     * 工作状态
     */
    @DbTableField(columnName = "c_work_state_desc", dbType = DbTypeEnum.VARCHAR)
    public String workStateDesc;

    /**
     * 人员类型ID t_pserson_class.c_id
     */
    @DbTableField(columnName = "c_type", dbType = DbTypeEnum.INTEGER)
    public Integer type;

    /**
     * 人员类型
     */
    @DbTableField(columnName = "c_type_name", dbType = DbTypeEnum.VARCHAR)
    public String typeName;

    /**
     * 所在项目组ID t_company_team.c_id
     */
    @DbTableField(columnName = "c_team_id", dbType = DbTypeEnum.INTEGER)
    public Integer teamId;

    /**
     * 身份证附件ID
     */
    @DbTableField(columnName = "c_file_id", dbType = DbTypeEnum.VARCHAR)
    public String fileId;

    /**
     * 片区Id  t_extent.c_id
     */
    @DbTableField(columnName = "c_extent_id", dbType = DbTypeEnum.INTEGER)
    public Integer extentId;

    /**
     * 片区
     */
    @DbTableField(columnName = "c_extent_name", dbType = DbTypeEnum.VARCHAR)
    public String extentName;

    /**
     * 公园Id t_park.c_id
     */
    @DbTableField(columnName = "c_park_id", dbType = DbTypeEnum.INTEGER)
    public Integer parkId;

    /**
     * 公园
     */
    @DbTableField(columnName = "c_park_name", dbType = DbTypeEnum.VARCHAR)
    public String parkName;

    /**
     * 标段Id
     */
    @DbTableField(columnName = "c_section_id", dbType = DbTypeEnum.INTEGER)
    public Integer sectionId;

    /**
     * 标段名称
     */
    @DbTableField(columnName = "c_section_name", dbType = DbTypeEnum.VARCHAR)
    public String sectionName;

    /**
     * 用户表关联id
     */
    @DbTableField(columnName = "c_user_id", dbType = DbTypeEnum.VARCHAR)
    public String userId;

    /**
     * 数量
     */
    public String totalNumber;

    /**
     * 班次ID
     */
    @DbTableField(columnName = "c_shift_id", dbType = DbTypeEnum.INTEGER)
    public Integer shiftId;

    /**
     * 任务ID
     */
    @DbTableField(columnName = "c_task_id", dbType = DbTypeEnum.INTEGER)
    public Integer taskId;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "班次名称")
    private String shiftName;
}
